package com.eshop.modules.activity.domain;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.bean.copier.CopyOptions;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.eshop.domain.BaseDomain;

@TableName("store_coupon_issue_user")
public class StoreCouponIssueUser extends BaseDomain
{
    @TableId
    @ApiModelProperty("优惠券前台用户领取记录ID")
    private Long id;
    @ApiModelProperty("领取优惠券用户ID")
    private Long uid;
    @ApiModelProperty("优惠券前台领取ID")
    private Integer issueCouponId;
    
    public void copy(final StoreCouponIssueUser source) {
        BeanUtil.copyProperties((Object)source, (Object)this, CopyOptions.create().setIgnoreNullValue(true));
    }
    
    public Long getId() {
        return this.id;
    }
    
    public Long getUid() {
        return this.uid;
    }
    
    public Integer getIssueCouponId() {
        return this.issueCouponId;
    }
    
    public void setId(final Long id) {
        this.id = id;
    }
    
    public void setUid(final Long uid) {
        this.uid = uid;
    }
    
    public void setIssueCouponId(final Integer issueCouponId) {
        this.issueCouponId = issueCouponId;
    }
    
    public String toString() {
        return "StoreCouponIssueUser(id=" + this.getId() + ", uid=" + this.getUid() + ", issueCouponId=" + this.getIssueCouponId() + ")";
    }
    
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof StoreCouponIssueUser)) {
            return false;
        }
        final StoreCouponIssueUser other = (StoreCouponIssueUser)o;
        if (!other.canEqual(this)) {
            return false;
        }
        if (!super.equals(o)) {
            return false;
        }
        final Object this$id = this.getId();
        final Object other$id = other.getId();
        Label_0075: {
            if (this$id == null) {
                if (other$id == null) {
                    break Label_0075;
                }
            }
            else if (this$id.equals(other$id)) {
                break Label_0075;
            }
            return false;
        }
        final Object this$uid = this.getUid();
        final Object other$uid = other.getUid();
        Label_0112: {
            if (this$uid == null) {
                if (other$uid == null) {
                    break Label_0112;
                }
            }
            else if (this$uid.equals(other$uid)) {
                break Label_0112;
            }
            return false;
        }
        final Object this$issueCouponId = this.getIssueCouponId();
        final Object other$issueCouponId = other.getIssueCouponId();
        if (this$issueCouponId == null) {
            if (other$issueCouponId == null) {
                return true;
            }
        }
        else if (this$issueCouponId.equals(other$issueCouponId)) {
            return true;
        }
        return false;
    }
    
    protected boolean canEqual(final Object other) {
        return other instanceof StoreCouponIssueUser;
    }
    
    public int hashCode() {
        final int PRIME = 59;
        int result = super.hashCode();
        final Object $id = this.getId();
        result = result * 59 + (($id == null) ? 43 : $id.hashCode());
        final Object $uid = this.getUid();
        result = result * 59 + (($uid == null) ? 43 : $uid.hashCode());
        final Object $issueCouponId = this.getIssueCouponId();
        result = result * 59 + (($issueCouponId == null) ? 43 : $issueCouponId.hashCode());
        return result;
    }
}
